Provides read-only access to the files contained within a single package.
Namespace: Microsoft.LearningComponents
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public abstract class PackageReader : IDisposable |
| Name | Description | |
| Ï | PackageReader | TODO |
| Name | Description | |
| ÐS | Create | Returns either a ZipPackageReader or LrmPackageReader, according to the type of package provided. |
| Ð | CreateManifestNavigator () | Returns an XPathNavigator that points to the <manifest> node of the package manifest. |
| Ð | Dispose () | This method supports the .NET Framework infrastructure and is not intended to be used directly from your code. Releases all resources used by the PackageReader. |
| Ï | Dispose (bool) | Releases all resources used by this object. |
| Ð | FileExists | Gets a value indicating whether the file exists in the package. |
| Ð | GetFilePaths () | Gets the collection of file paths in the package. All paths are relative to the root of the package. |
| Ð | GetFileStream | Returns a System.IO.Stream that can read the specified file. |
| Ð | TransmitFile | Writes a file directly to a web page response. This method should be used whenever possible, as it has much better performance than reading a file into a stream and copying it to the response. |
PackageReader is an abstract class which provides an application with a consistent way of accessing content within a package, regardless of how the package is stored. Microsoft Learning Components provides the following implementations of PackageReader:
PackageReader implements IDisposable. Always call the Dispose method when finished with a PackageReader object, or use a using statement, to ensure that unmanaged resources are explicitly and properly released.